From 8b84ca60c0c49c06098ddcaa035228f5c2ec0f90 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 28 Jul 2005 18:42:27 +0000 Subject: [PATCH] Return error (that isn't actually tested by caller, but that's OK becuase the return value isn't actually _used_ anyway...) git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1327 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/gdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/gdb.c b/gpsbabel/gdb.c index c914fbd01..b5eb8cf95 100644 --- a/gpsbabel/gdb.c +++ b/gpsbabel/gdb.c @@ -519,7 +519,7 @@ gdb_read_route(void) if (buff[0] == 1) gdb_fread_le(fin, buff, 8, 64, "min_alt"); gdb_fread_le(fin, &count, sizeof(count), 32, "rte_count"); - if (count <= 0) return; + if (count <= 0) return NULL; route = route_head_alloc(); route->rte_name = xstrdup(xname); -- 2.30.2